
import  {HttpServicesAdapter} from "./adapter/http/HttpServicesAdapter"
import {Method,StartRequest,Params,RequestConfig,AdapterResponse,AdapterRequest,HttpServicesAdapter2} from './types'
import {HttpServicesClient2} from "./adapter/http/HttpServicesClient2";
export default class HttpServices{
	/**
	 * 旧版适配器-废弃
	 * @param startRequest 适配器接口
	 */
	static addStartRequestHandler(startRequest: StartRequest):void{
		HttpServicesAdapter.addStartRequestHandler(startRequest)
	}
	/**
	 * 旧版适配器-废弃
	 * @param baseUrl 端口地址
	 */
	static createHttpServicesAdapter(baseUrl?: string): HttpServicesAdapter {
		return HttpServicesAdapter.createHttpServicesAdapter(baseUrl)
	}
	/**
	 * 新版适配器-推荐使用
	 * @param adapterRequest 适配器接口
	 */
	static addAdapterRequestHandler(adapterRequest: AdapterRequest):void{
		HttpServicesClient2.addAdapterRequest(adapterRequest)
	}
	/**
	 * 旧版适配器-新版适配器-推荐使用
	 * @param baseUrl 端口地址
	 */
	static createHttpServicesAdapter2(baseUrl?: string): HttpServicesAdapter2 {
		return HttpServicesClient2.createHttpServicesAdapter(baseUrl)
	}
}
export type {Method,StartRequest,Params,RequestConfig,AdapterResponse,AdapterRequest,HttpServicesAdapter,HttpServicesAdapter2}
